//
// Created by wkm on 2024-04-21.
//

#include "schedulekey_driver.h"

void schedulekey_driver::prc_schedulekey_driver() {
    d_reset.write(true);
    wait();
    d_reset.write(false);
    wait();
    d_init_key_1.write(0x01);
    d_init_key_2.write(0x02);
    d_init_key_3.write(0x03);
    d_init_key_4.write(0x04);
    d_init_key_5.write(0x0a);
    d_init_key_6.write(0x0b);
    d_init_key_7.write(0x0c);
    d_init_key_8.write(0x0d);
    d_init_key_9.write(0xa1);
    d_init_key_10.write(0xb2);
    d_init_key_11.write(0xc3);
    d_init_key_12.write(0xd4);
    d_init_key_13.write(0x11);
    d_init_key_14.write(0x22);
    d_init_key_15.write(0x33);
    d_init_key_16.write(0x44);
    wait();
    wait();
    d_start.write(true);
    wait();
    wait();
    wait();
    d_start.write(false);
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    get_round.write(1);
    wait();
    get_round.write(2);
    wait();
    get_round.write(3);
    wait();
    get_round.write(4);
    wait();
    get_round.write(5);
    wait();
    get_round.write(6);
    wait();
    get_round.write(7);
    wait();
    get_round.write(8);
    wait();
    get_round.write(9);
    wait();
    get_round.write(10);
    wait();
    get_round.write(11);
    wait();
    wait();
    wait();
    sc_stop();
}
